home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-19 / iritsm3s.zip / ALLOCATE.H < prev    next >
C/C++ Source or Header  |  1991-03-14  |  1KB  |  32 lines

  1. /*****************************************************************************
  2. *   "Irit" - the 3d polygonal solid modeller.                     *
  3. *                                         *
  4. * Written by:  Gershon Elber                Ver 0.2, Mar. 1990   *
  5. ******************************************************************************
  6. * Definitions, visible to others, of the dynamic allocator module.         *
  7. *****************************************************************************/
  8.  
  9. #ifndef    ALLOCATE_GH
  10. #define    ALLOCATE_GH
  11.  
  12. typedef enum {
  13.     ALLOC_OTHER,
  14.     ALLOC_VERTEX,
  15.     ALLOC_SURFACE,
  16.     ALLOC_CURVE,
  17.     ALLOC_POLYGON,
  18.     ALLOC_OBJECT
  19. } AllocateStructType;
  20.  
  21. char *MyMalloc(unsigned int Size, AllocateStructType Type);
  22. void MyFree(char *p, AllocateStructType Type);
  23.  
  24. VertexStruct *AllocVertex(ByteType Count, ByteType Tags,
  25.                 PolygonStruct * PAdj, VertexStruct * Pnext);
  26. PolygonStruct *AllocPolygon(ByteType Count, ByteType Tags,
  27.                 VertexStruct * V, PolygonStruct * Pnext);
  28. ObjectStruct *AllocObject(char *Name, IritObjectType ObjType,
  29.                          ObjectStruct * Pnext);
  30.  
  31. #endif    /* ALLOCATE_GH */
  32.